
from faceToObject.Library import Library
from faceToObject.Book import Book

# 实例化对象
library = Library()

book1 = Book(1, "1984", "George Orwell", 1949)
book2 = Book(2, "To Kill a Mockingbird", "Harper Lee", 1960)

library.addBook(book1)
library.addBook(book2)

library.list_books()

library.update_book(1, title="Nineteen Eighty-Four")
library.query_book(1)

library.delete_book(2)
library.list_books()


